import request from '@/http/index.js'
// 获取分类列表
export function listData(data) {
	return request({
		url: '/category/list',
		method: 'GET',
		data
	})
}
// 首页列表
export function homeList(data) {
	return request({
		url: '/task/home',
		method: 'GET',
		data
	})
}
//消息列表
export function messageList(data) {
	return request({
		url: '/message/list',
		method: 'GET',
		data
	})
}
//消息已读
export function messageRead(data) {
	return request({
		url: '/message/read',
		method: 'POST',
		data
	})
}
//消息一键已读
export function messageReadAll(data) {
	return request({
		url: '/message/readAll',
		method: 'POST',
		data,
    needLoading: true
	})
}
//获取用户个人中心信息
export function info(data) {
  return request({
    url: '/user/info',
    method: 'GET',
    data
  })
}